import request from '@/utils/request'



const indexApis = {
    //查询门店当前用户下面不同状态的数量
    getIntentionCountNum() {
        return request.get('/sq/intention/countNum')
    },
    //获取意向客户列表
    getList(form, pageSize, currentPage) {
        const data = {
            param: form,
            pageSize: pageSize,
            pageNo: currentPage
        }
        return request.post('/sq/intention/page', data)
    },
    //添加意向客户
    intentionSave(form = {}) {
        return request.post('/sq/intention/save', form)
    },
    ///sq/intention/detail/{id}
    //客户详情
    intentiongDetail(id) {
        return request.get(`/sq/intention/detail/${id}`)
    },
    //跟进 到店保存
    intentiongGJSave(form = {}) {
        return request.post('/sq/intention/gjSave', form)
    },
    //跟进 到店删除
    intentiongGJDelete(id) {
        return request.delete(`/sq/intention/gjDel/${id}`)
    },
    //跟进-到店详情
    intentiongGJDetail(id) {
        return request.get(`/sq/intention/gjDetail/${id}`)
    },
    //离店
    intentiongOut(id) {
        return request.get(`/sq/intention/out/${id}`)
    },
    //战败
    intentiongDefeated(form = {}) {
        return request.post(`/sq/intention/defeated`, form)
    },
    //成交
    intentiongSuccess(form = {}) {
        return request.put(`/sq/intention/success`, form)
    },
    //补充信息
    intentiongSupplement(form = {}) {
        return request.put(`/sq/intention/supplement`, form)
    },

    //各种状态列表
    intentiongGJFindAll(form = {}) {
        return request.post(`/sq/intention/gjFindAll`, form)
    },
    //邀约
    // 邀约删除
    intentiongYYDelete(id) {
        return request.delete(`/sq/intention/yyDel/${id}`)
    },

    //邀约详情
    intentiongYYDetail(id) {
        return request.get(`/sq/intention/yyDetail/${id}`)
    },

    // /sq/intention/yyFindAll/{intentionId}
    // 邀约列表
    intentiongYYFindAll(id) {
        return request.get(`/sq/intention/yyFindAll/${id}`)
    },
    // /sq/intention/yySave
    // 邀约保存
    intentiongYYSave(form = {}) {
        return request.post(`/sq/intention/yySave`, form)
    },
    //乘车试驾列表
    intentiongTestDriveRecord(id) {
        return request.get(`/sq/intention/testDriveRecord/${id}`)
    },
    //我的精品
   
    intentiongMyBrand(id) {
        return request.get(`/sq/intention/myBrand/${id}`)
    },
}
export {
    indexApis
}




